//
//  CHDatePickerView.h
//  CarFile
//
//  Created by 陈浩 on 2018/1/23.
//  Copyright © 2018年 陈浩. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "CZKeyboardTool.h"
@class CHDatePickerView;
@protocol CHDatePickerViewDelegate <NSObject>
@optional
- (void)datePickerDidValueChanged:(CHDatePickerView *)datePicker;
- (void)datePicker:(CHDatePickerView *)datePicker didClickBtnType:(CZKeyboardToolButtonType)type;
@end

@interface CHDatePickerView : UIView

@property (nonatomic,weak) id<CHDatePickerViewDelegate> delegate;



/**
 *  触摸日期选择器的对象
 */
@property (nonatomic,weak) id focusObject;

@property (nonatomic ,strong) NSMutableArray *dateArr;


/**
 *  创建日期选择器
 *
 */
+(instancetype)datePicker;
/**
 *  显示日期选择器
 */
-(void)show;
/**
 *  隐藏日期选择器
 */
-(void)dismiss;



@end
